package com.atguigu.daijia.driver.service.impl;

import com.atguigu.daijia.driver.service.OcrService;
import com.atguigu.daijia.model.vo.driver.DriverLicenseOcrVo;
import com.atguigu.daijia.model.vo.driver.IdCardOcrVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;

@Slf4j
@Service
@SuppressWarnings({"unchecked", "rawtypes"})
public class OcrServiceImpl implements OcrService {


    @Override
    public IdCardOcrVo idCardOcr(MultipartFile file) {

        IdCardOcrVo idCardOcrVo = new IdCardOcrVo();

        idCardOcrVo.setName("张三");
        idCardOcrVo.setGender("1");
        Date date = new Date("2000/12/30");
        idCardOcrVo.setBirthday(date);
        idCardOcrVo.setIdcardNo("110101199001011234");
        idCardOcrVo.setIdcardAddress("北京市朝阳区天坛花园小区");

        idCardOcrVo.setIdcardFrontShowUrl("123123");
        idCardOcrVo.setIdcardFrontUrl("123123");
        Date date1 = new Date("2025/12/12");
        idCardOcrVo.setIdcardExpire(date1);
        return idCardOcrVo;
    }

    @Override
    public DriverLicenseOcrVo driverLicenseOrc(MultipartFile file) {
        DriverLicenseOcrVo driverLicenseOcrVo = new DriverLicenseOcrVo();

        return driverLicenseOcrVo;
    }
}
